package com.qiaoba.api.system.entity.dto;

import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * 用户重置密码
 *
 * @author ailanyin
 * @date 2023-09-13 22:02:10
 */
@Data
public class UserResetPwdDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 用户ID
     */
    @NotNull(message = "主键不能为空")
    @Size(max = 20, message = "主键不能超过{max}个字符")
    private String userId;

    /**
     * 新密码
     */
    @NotNull(message = "密码不能为空")
    @Size(min = 6, max = 20, message = "密码长度{min}-{max}之间")
    private String password;
}
